package entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Customer {
	private int cusId;
	private String userName;
	private String password;
	private String phone;
	private Date registerDate;
	private String email;
	private List<Address> addressList = new ArrayList<Address>();
	private List<Order> orderList = new ArrayList<Order>();
	public int getCusId() {
		return cusId;
	}
	public void setCusId(int cusId) {
		this.cusId = cusId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public Date getRegisterDate() {
		return registerDate;
	}
	public void setRegisterDate(Date registerDate) {
		this.registerDate = registerDate;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public List<Address> getAddressList() {
		return addressList;
	}
	public void setAddressList(List<Address> addressList) {
		this.addressList = addressList;
	}
	
	public List<Order> getOrderList() {
		return orderList;
	}
	public void setOrderList(List<Order> orderList) {
		this.orderList = orderList;
	}
	public Customer() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public Customer(int cusId, String userName, String password, String phone, Date registerDate, String email,
			List<Address> addressList) {
		super();
		this.cusId = cusId;
		this.userName = userName;
		this.password = password;
		this.phone = phone;
		this.registerDate = registerDate;
		this.email = email;
		this.addressList = addressList;
	}
	@Override
	public String toString() {
		return "Customer [cusId=" + cusId + ", userName=" + userName + ", password=" + password + ", phone=" + phone
				+ ", registerDate=" + registerDate + ", email=" + email + ", addressList=" + addressList + "]";
	}
	
	
	
	
	
	
	
}
